<?php
// +----------------------------------------------------------------------
// | XiaMiCMF - 代码如诗
// +----------------------------------------------------------------------
// | Copyright (c) 2015-2016 http://shujuwajue.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 小虾米 <509129@qq.com>
// +----------------------------------------------------------------------
namespace PcHome\Model;

use Common\Model\CommonModel;

class ArticleCateModel extends CommonModel
{
    protected $tableName = 'cms_article_cate';

    protected $orderBy = array('sort'=>'ASC');

    protected $_validate = array(
        //array(验证字段,验证规则,错误提示,验证条件,附加规则,验证时间)
        array('cate_name', 'require', '栏目名称不能为空', self::MUST_VALIDATE, 'regex', self:: MODEL_BOTH),
    );
}